package net.onecloud.onecloud.network.service;

import net.onecloud.onecloud.model.ResultResume;
import net.onecloud.onecloud.model.ResultToemploy;
import net.onecloud.onecloud.model.Resume;
import net.onecloud.onecloud.model.Toemploy;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by zaizai on 16/7/30.
 */
public interface ToemployService {
    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/OneCloud/toemploy/add")
    Observable<ResultToemploy> add(@Body Toemploy toemploy);

    @GET("/OneCloud/toemploy/query2/{user_id}")
    Observable<ResultToemploy> query2(@Path(value = "user_id") String user_id);
}
